<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    
</head>
<body>
    <!-- 渲染结果显示 div id=root这一层结构不再显示 -->
  <!-- outerHTML -->
  <div id="root">
    <my-app></my-app>
  </div>
</body>
<script>
    Vue.component('MyApp', {
      template: '<div id="app">app</div>'
    })
    new Vue({
      // render vue2中的jsx语法
      // h 其实就是默认参数，也可以写为createElement
      render: h => h('MyApp')
    }).$mount('#root')
  </script>
</html>